load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")

go_library(
    name = "stringer_lib",
    srcs = ["stringer.go"],
    importmap = "github.com/cockroachdb/cockroach/vendor/golang.org/x/tools/cmd/stringer",
    importpath = "golang.org/x/tools/cmd/stringer",
    visibility = ["//visibility:private"],
    deps = ["//vendor/golang.org/x/tools/go/packages"],
)

go_binary(
    name = "stringer",
    embed = [":stringer_lib"],
    visibility = ["//visibility:public"],
)
